This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span class="exclusive">Scale Point Label</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
var listType = "ul"; //use ul for unorderd list, ol for ordered list | |
var q = jQuery(this.questionContainer); | |
q.find(".QuestionBody").hide(); | |
q.find(".QuestionText").append("<"+listType+" class='choiceList'></"+listType+">"); | |
var list = q.find(".choiceList").css("margin-bottom","0px"); | |
q.find("label.SingleAnswer>span").each(function() { list.append("<li>"+this.innerHTML+"</li>"); }); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.Skin .Matrix table tr.ChoiceRow td { | |
display:block;text-align:left;padding:5px 2px;border-left:1px solid #666;border-right:1px solid #666; } | |
.Skin .Matrix table th.c1 { border-left:1px solid #666;border-bottom:1px solid #666; } | |
.Skin .Matrix table tr.ChoiceRow td:last-of-type { border-bottom:1px solid #666; } | |
.Skin .Matrix table tr.ChoiceRow:first-of-type th, | |
.Skin .Matrix table tr.ChoiceRow:first-of-type td:first-of-type { border-top:1px solid #666; } | |
.JFEScope .Skin .desktop .mobile { display: inline!important; } | |
tr.Answers { display:none; } | |
.JFEScope .Skin .desktop .mobile.dropdown-arrow { display:none!important; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/npm/luxon@3.4/build/global/luxon.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
console.log(Array.from({length: 20}, (e, i) => i)); | |
}); | |
// Production steps of ECMA-262, Edition 6, 22.1.2.1 | |
// Copied and modified from http://www.devdoc.net/web/developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from.html | |
Array.from = (function () { | |
var toStr = Object.prototype.toString; | |
var isCallable = function (fn) { | |
return typeof fn === 'function' || toStr.call(fn) === '[object Function]'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
jQuery("#"+this.questionId+" .ChoiceRow").each(function() { | |
if(Math.random() < 0.5) { | |
var row = jQuery(this); | |
row.children().each(function() { row.prepend(jQuery(this)); }); | |
row.find("th").first().removeClass("AnswerLeft").addClass("AnswerRight"); | |
row.find("th").last().removeClass("AnswerRight").addClass("AnswerLeft"); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Qualtrics.SurveyEngine.addOnload(function() { | |
var selector = "select"; //Update for specific selects | |
jQuery(this.questionContainer).find(selector).each(function() { | |
var sel = jQuery(this); | |
var options = sel.find("option:not(:first)").toArray(); | |
for(var i=0;i<=options.length;i++) { sel.append(options[Math.random() * i | 0]); } | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="reset">Reset</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show a bulleted list here: <div class="bullets">${q://QID84/ChoiceGroup/SelectedChoices}</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function uuidv4() { | |
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => | |
(c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)); | |
} | |
console.log(uuidv4()); |
NewerOlder